<?php

namespace App\Console\Commands;

use Illuminate\Console\Command;
use Illuminate\Support\Facades\DB;
use Symfony\Component\Console\Command\Command as CommandAlias;

class CronTest extends Command
{
    protected $signature = 'cron:test';
    protected $description = 'Cron test';

    public function handle()
    {
        $this->info('Cron test');
        print "Cron test1111111\n";
        DB::table('user1')->where(["id" => 1])->increment('age', 1);
        if (false) {
            return Command::FAILURE;
        } else {
            return CommandAlias::SUCCESS;
        }
    }


}
